package com.argticling.service;

import com.argticling.dao.interf.PrivilegeDAO;
import com.argticling.model.privilege.Privilege;

public class PrivilegeService {
    private PrivilegeDAO privilegeDao;

    public void delete(Privilege privilege) {
        privilegeDao.delete(privilege);
    }

    public void persist(Privilege privilege) {
        privilegeDao.persist(privilege);
    }

    public Privilege getPrivilegeById(String id){
        return privilegeDao.getPrivilegeById(id);
    }

    public PrivilegeDAO getPrivilegeDao() {
        return privilegeDao;
    }

    public void setPrivilegeDao(PrivilegeDAO privilegeDao) {
        this.privilegeDao = privilegeDao;
    }
}
